import 'package:bilibili/basic/http/core/hi_net_adapter.dart';
import 'package:bilibili/basic/http/request/base_request.dart';

///测试适配器
class MockAdapter extends HiNetAdapter {
  @override
  Future<HiNetResponse<T>> send<T>(BaseRequest request) async {
    return Future.delayed(const Duration(milliseconds: 1000), (){
      return HiNetResponse(
        request: request,
        data: {"code":0, "message": "success"} as T,
        statusCode: 403
      );
    });
  }

}